<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>千锋的网站-移动端</title>
    <link rel="stylesheet" href="style.css">
    <link rel="stylesheet" href="font/iconfont.css">
    <style>
        html{
           font-size:26.66vw; 
        }
        
        header{
            width:3.75rem; height:.44rem;
            background: #298ccf;
            display: flex;
            justify-content: center;
            align-items: center;
            position: fixed;
            top: 0;
        }
        header ul{
            width:1.175rem; height:.24rem;
            /* background: rgba(255,255,255,0.2); */
            background: #54a3d9;
            border-radius: .12rem;
            display: flex;
        }
        header ul li a{
            color: #b2d1ff;
        }
        header li{
            flex:1;
            text-align: center;
        }
        header .on{
            background:#76b5e1;
            border-top-left-radius: .12rem;
            border-bottom-left-radius: .12rem;
        }
        header .on a{
            color: #fff;
        }
        nav{
            width:3.75rem;
            height:.35rem;
            border-bottom: 1px solid #d9d9d9;  
            margin-top: .44rem;   
        }
        nav a{
            color: #666;
            font-size: .14rem;
            display: block;
        }
        nav ul{
            display: flex;
            /* height:.35rem;
            align-items: center; */
            line-height: .35rem;
            text-align: center; 
        }
        nav ul li{
            flex:1;
        }
        nav .active{
            border-bottom: solid .025rem #298ccf;
            height: .33rem;
        }
        nav .active a{
           color:#298ccf;
          
        }
        section{
            margin-bottom: .43rem;
        }
        section ul{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            margin-top:.02rem;
        }
        section li{
            width:1.79rem;
            border: solid 1px #e5e5e5;
            margin-top: .08rem;
        }
        section li img{
            /* 插入图片一定要转成rem  插入图不写高度是图片本身的宽度 */
            width:1.79rem; height:1.56rem;
        }
        section li span{
            display: block;
            line-height: .29rem;
            color:#666;
            text-align: center;
        }
        footer{
            width:3.75rem;
            height: .43rem;
            background: #fff;
            position: fixed;
            bottom: 0;
        }
        footer ul{
            display: flex;
            line-height: .18rem;
            justify-content: space-evenly;
            text-align: center;
        }
        footer li a{
            color:#999;
        }
        footer span{
            display: block;           
        }
        footer ul li:nth-of-type(3){
            width:.495rem; height:.495rem;
            border: solid 1px #dedede;
            border-radius: 50%;
            position: relative;
            top: -0.09rem;
            background: #fff;
        }
        footer ul li:nth-of-type(3) i{
            font-size: .3rem;
            line-height:0.4rem;
        }
        footer ul li .iconfont{
            display: block;
            padding-top: .065rem;
            font-size: .16rem;
        }
        body{
            font-size: 0.12rem;
            line-height: 0.24rem;
        }
        /* 
        
        总结
            pc px float
            移动端 rem flex(float)
        */
    </style>
</head>
<body>
    <header>
        <ul>
           <li class="on"><a href="#">热点</a></li> 
           <li><a href="#">关注</a></li> 
        </ul>
    </header>
    <nav>
        <ul>
            <li class="active"><a href="#">演员生活</a></li>
            <li><a href="#">讲师团队</a></li>
            <li><a href="#">演员生活</a></li>
        </ul>
    </nav>
    <section>
        <ul>
            <li><a href="#"><img src="images/img1.jpg" alt="">
                <span>余美丽</span>
            </a></li>
            <li><a href="#"><img src="images/img1.jpg" alt="">
                <span>余美丽</span>
            </a></li>
            <li><a href="#"><img src="images/img1.jpg" alt="">
                <span>余美丽</span>
            </a></li>
            <li><a href="#"><img src="images/img1.jpg" alt="">
                <span>余美丽</span>
            </a></li>
            <li><a href="#"><img src="images/img1.jpg" alt="">
                <span>余美丽</span>
            </a></li>
            <li><a href="#"><img src="images/img1.jpg" alt="">
                <span>余美丽</span>
            </a></li>
            <li><a href="#"><img src="images/img1.jpg" alt="">
                <span>余美丽</span>
            </a></li>
            <li><a href="#"><img src="images/img1.jpg" alt="">
                <span>余美丽</span>
            </a></li>
            <li><a href="#"><img src="images/img1.jpg" alt="">
                <span>余美丽</span>
            </a></li>
            <li><a href="#"><img src="images/img1.jpg" alt="">
                <span>余美丽</span>
            </a></li>
        </ul>
    </section>
    <footer>
        <ul>
            <li><a href="#"><i class="iconfont" style="color: red">&#xe6ca;</i><span>首页</span></a></li>
            <li><a href="#"><i class="iconfont">&#xe65f;</i><span>发现</span></a></li>
            <li><a href="#"><i class="iconfont">&#xe8d1;</i></a></li>
            <li><a href="#"><i class="iconfont">&#xe608;</i><span>我的</span></a></li>
            <li><a href="#"><i class="iconfont">&#xe606;</i><span>退出</span></a></li>
        </ul>
    </footer>
</body>
</html>